package com.itheima.test2;

public class Test {

    public static void main(String[] args) {
        Zi zi= new Zi();
        zi.show();
    }
}

class Fu{
    int i=30;

    public  void sing(){
        System.out.println("唱了一首");

    }
}

class Zi extends Fu{

    //int i=20;
    public void show(){
       // int i=10;
        System.out.println(i);
        System.out.println(this.i);
        System.out.println(super.i);
        //super.sing();

    }




    public void sing(){
       // super.sing();
        System.out.println("子唱了一首");


    }
    public int sing(int a){
        // super.sing();
        System.out.println("子唱了一首");
        return 0;

    }
}
